ifeq ($(OS),Windows_NT)
    CURR_DIR_PATH = $(CURDIR)/../../
else
    CURR_DIR_PATH = $(shell pwd)/../../
endif

GCC:=gcc
INC+=-I${CURR_DIR_PATH}/utils/include
INC+=-I${CURR_DIR_PATH}/test/unity
# INC+=-I${CURR_DIR_PATH}/test/serialize

SRC+=${CURR_DIR_PATH}/utils/src/container/queue.c
SRC+=${CURR_DIR_PATH}/utils/src/container/list.c
SRC+=${CURR_DIR_PATH}/utils/src/container/ind_queue.c
SRC+=${CURR_DIR_PATH}/utils/src/container/stack.c
SRC+=${CURR_DIR_PATH}/utils/src/container/vector.c

SRC+=${CURR_DIR_PATH}/test/container/container_test.c
SRC+=${CURR_DIR_PATH}/test/container/list_test.c
SRC+=${CURR_DIR_PATH}/test/container/queue_test.c
SRC+=${CURR_DIR_PATH}/test/container/ind_queue_test.c
SRC+=${CURR_DIR_PATH}/test/container/stack_test.c
SRC+=${CURR_DIR_PATH}/test/container/vector_test.c

SRC+=${CURR_DIR_PATH}/test/unity/unity.c

AIM_NAME:=container_test

.PHONY:all
all:
	${GCC} ${INC} ${SRC} -o ${CURR_DIR_PATH}/test/container/${AIM_NAME} -std=c99

.PHONY:clean
clean:
	rm -rf ${CURR_DIR_PATH}/test/container/${AIM_NAME}